package com.woniuxy.goods.service;

import com.woniuxy.comments.entity.Goods;
import com.woniuxy.comments.util.CustomPage;
import com.woniuxy.comments.util.ResponseResult;

import java.util.List;

/**
 * @Author Liu Tao
 * @Date 2023 05 15 15 42
 **/
public interface GoodsService {

    ResponseResult<CustomPage<List<Goods>>> findAll(int page, int size);

    ResponseResult<Goods> findById(int id);

    ResponseResult<Boolean> updateByState(int id);

    ResponseResult<Boolean> add(Goods goods);

    ResponseResult<Boolean> update(Goods goods);

}
